<%@ page language="java" import="java.util.*,com.gdpu.project.vo.Project" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>新闻发布</title>
<link rel="stylesheet" rev="stylesheet" href="<%=basePath%>admin/css/style.css" type="text/css" media="all" />
<base href="<%=basePath%>">
<style type="text/css">
<!-- 
	.type{
		color:red;
	}
-->
</style>
<script charset="utf-8" src="<%=basePath%>admin/files/newsManager/kindeditor.js"></script>
		<script>
			KE.show({
				id : 'content2',
				resizeMode : 1,
				allowPreviewEmoticons : false,
				allowUpload : false,
				items : [
				'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
				'insertunorderedlist', '|', 'link']
			});
		</script>

<script language="JavaScript" type="text/javascript">
function tishi()
{
  var a=confirm('数据库中保存有该人员基本信息，您可以修改或保留该信息。');
  if(a!=true)return false;
  window.open("冲突页.htm","","depended=0,alwaysRaised=1,width=800,height=400,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0");
}

function check()
{
document.getElementById("aa").style.display="";
}

function inspect(){
	var f = document.forms[0];
	var title = f.newsTitle.value;
	var object = document.getElementById("checkResult");
	if(title==""){
		object.innerHTML = "请输入新闻标题";
	}else{
		f.submit();
	}
}

</script>
<style type="text/css">
<!--
.atten {font-size:12px;font-weight:normal;color:#F00;}
-->
</style>
</head>

<body class="ContentBody">
<form action="<%=basePath%>newsAddAction.action" method="post" enctype="multipart/form-data" name="form" target="mainFrame"  >
<div class="MainDiv">
<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
  <tr>
      <th class="tablestyle_title" >新闻发布</th>
  </tr>
  <tr>
    <td class="CPanel">
		
		<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
		<TR>
			<TD width="100%">
				<fieldset style="height:100%;">
				<legend>新闻发布</legend>
					  <table border="0" cellpadding="2" cellspacing="1" style="width:100%">
					    
					    
					  <tr>
					    <td nowrap align="right" width="11%">新闻标题:</td>
					    <td width="27%"><input name="newsTitle" class="text" style="width:400px"/></td>
				        <td><div id="checkResult" class="type"></div></td>	
					    <td align="right" width="25%">&nbsp;</td>
					    <td width="37%">&nbsp;</td>
					    </tr>
					    
					    
					    
					  <tr>
					    <td width="11%" align="right" nowrap>新闻类别:</td>
					    <td colspan="3">
					      <select name="newsType" style="width:150px">
							<option selected="selected">校級新闻</option>
							<option>院級新闻</option>
							<option>教研室新闻</option>
						</select></td></tr>
					  
					  <tr>
					    <td  width="11%" nowrap align="right">新闻内容:</td>
					    <td colspan="3">
					    <textarea  id="content2" name="newsInfo" cols="90" rows="20"></textarea>
					   </td>
					   
					    </tr>
					  </table>
			  <br />
				</fieldset>			</TD>
			
		</TR>
		</TABLE>
	
	
	 </td>
  </tr>
		<TR>
			<TD colspan="2" align="center" height="50px">
			<input type="button" name="Submit" value="发布" class="button" onclick="javascript:inspect();"/>　
			<input type="button" name="Submit2" value="返回" class="button" onclick="window.history.go(-1);"/></TD>
		</TR>
		</TABLE>

</div>
</form>
<div>
${message}
</div>
</body>
</html>
